package com.fh.service.impl;

import com.fh.mapper.StockUpdateMapper;
import com.fh.model.ProductSku;
import com.fh.service.StockUpdateService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class StockUpdateServiceImpl implements StockUpdateService {

 @Resource
 private StockUpdateMapper stockUpdateMapper;

    @Override
    public int update(ProductSku productSku) {
        return  stockUpdateMapper.updateByPrimaryKeySelective(productSku);
    }
}
